
package visit;

public class NewsNotifaction implements Visitable {

    public void openNewsAndShowDetail() {
        System.out.println("打开新闻界面");
        System.out.println("打开新闻详情");
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
